package com.quanyan.place.entity.apireq;

import java.io.Serializable;
import java.util.List;

import com.alibaba.druid.util.StringUtils;
import com.quanyan.place.utils.PlaceUtil;

/**
 * Created by jingliu on 16/6/3.
 */
public class ReqBillingInfo implements Serializable{
	private static final long serialVersionUID = -6597410804836053125L;

	private Integer placeId;//场馆ID

    private String name;//姓名

    private String contactInformation;//联系方式

    private String memo;//备注

    private List<UnitSaleInfo> unitSaleInfos;//扩展使用

    private String placeUnitId;//开单的场馆单元  --saleid

    private Integer createUid;//操作人Id

    private Integer categoryId;//栏目Id
    
    private String weeks;//星期串

    private List<Integer> week;

    private String unitIds;//场馆单元Id串

    private List<Integer> unitId;

    private Long startDate;

    private Long endDate;

    private Integer memberCardId;//会员卡id

    private String createUserName;//操作人名称

    private Integer enableRefund;//是否允许退订（包场） 0 不允许 1 允许

    private Integer adminPayType;

    private String receivedAmount;//实收金额

    private String  expression;

    private String scanCode;//扫码

    private Integer lockFlag;//锁场转开单标识
    
    private Integer parentOrderId;//父订单ID
    
    private Integer discount;

    public Integer getParentOrderId() {
		return parentOrderId;
	}

	public void setParentOrderId(Integer parentOrderId) {
		this.parentOrderId = parentOrderId;
	}

	public Integer getDiscount() {
		return discount;
	}

	public void setDiscount(Integer discount) {
		this.discount = discount;
	}

	public Integer getAdminPayType() {
        return adminPayType;
    }

    public void setAdminPayType(Integer adminPayType) {
        this.adminPayType = adminPayType;
    }

    public Integer getEnableRefund() {
        return enableRefund;
    }

    public void setEnableRefund(Integer enableRefund) {
        this.enableRefund = enableRefund;
    }

    public String getCreateUserName() {
        return createUserName;
    }

    public void setCreateUserName(String createUserName) {
        this.createUserName = createUserName;
    }

    public Integer getMemberCardId() {
        return memberCardId;
    }

    public void setMemberCardId(Integer memberCardId) {
        this.memberCardId = memberCardId;
    }

    public Integer getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }

    public Long getStartDate() {
        return startDate;
    }

    public void setStartDate(Long startDate) {
        this.startDate = startDate;
    }

    public Long getEndDate() {
        return endDate;
    }

    public void setEndDate(Long endDate) {
        this.endDate = endDate;
    }

    public String getUnitIds() {
        return unitIds;
    }

    public void setUnitIds(String unitIds) {
        this.unitIds = unitIds;
    }

    public List<Integer> getUnitId() {
    	if (!StringUtils.isEmpty(unitIds)) {
    		unitId = PlaceUtil.splitIds(unitIds);
    	}
        return unitId;
    }

    public void setUnitId(List<Integer> unitId) {
        this.unitId = unitId;
    }

    public List<Integer> getWeek() {
    	if (!StringUtils.isEmpty(weeks)) {
    		week = PlaceUtil.splitIds(weeks);
    	}
        return week;
    }

    public void setWeek(List<Integer> week) {
        this.week = week;
    }

    public String getWeeks() {
        return weeks;
    }

    public void setWeeks(String weeks) {
        this.weeks = weeks;
    }

    public Integer getCreateUid() {
        return createUid;
    }

    public void setCreateUid(Integer createUid) {
        this.createUid = createUid;
    }

    public String getPlaceUnitId() {
        return placeUnitId;
    }

    public void setPlaceUnitId(String placeUnitId) {
        this.placeUnitId = placeUnitId;
    }

    public Integer getPlaceId() {
        return placeId;
    }

    public void setPlaceId(Integer placeId) {
        this.placeId = placeId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getContactInformation() {
        return contactInformation;
    }

    public void setContactInformation(String contactInformation) {
        this.contactInformation = contactInformation;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public List<UnitSaleInfo> getUnitSaleInfos() {
        return unitSaleInfos;
    }

    public void setUnitSaleInfos(List<UnitSaleInfo> unitSaleInfos) {
        this.unitSaleInfos = unitSaleInfos;
    }

    public String getReceivedAmount() {
        return receivedAmount;
    }

    public void setReceivedAmount(String receivedAmount) {
        this.receivedAmount = receivedAmount;
    }

    public String getExpression() {
        return expression;
    }

    public void setExpression(String expression) {
        this.expression = expression;
    }

    public String getScanCode() {
        return scanCode;
    }

    public void setScanCode(String scanCode) {
        this.scanCode = scanCode;
    }

    public Integer getLockFlag() {
        return lockFlag;
    }

    public void setLockFlag(Integer lockFlag) {
        this.lockFlag = lockFlag;
    }
}
